package com.company;

import java.util.ArrayList;

public class Main {

    public static void main(String[] args) {

        LineWriter lineWriter = new LineWriter();
        lineWriter.writeAsterisk();
        lineWriter.writeHorizontalLine(8);
        lineWriter.writeVerticalLine(3);

        ShapeWriter shapeWriter = new ShapeWriter();
        shapeWriter.writeRightAngleTriangle(3);
        shapeWriter.writeCenteredTriangle(3);
        shapeWriter.writeCenteredDiamond(3);

        FizzBuzzWriter fizzBuzzer = new FizzBuzzWriter();
        fizzBuzzer.writeFizzBuzz();

        FactorGenerator factorGenerator = new FactorGenerator();
        ArrayList<Integer> factors = factorGenerator.generate(30);
        StringBuilder factorsToWrite = new StringBuilder();
        for (Integer i : factors) {
            factorsToWrite.append(i);
            factorsToWrite.append(System.getProperty("line.separator"));
        }
        System.out.print(factorsToWrite.toString());

    }
}
